$OpenBSD: patch-pub_getopt_c,v 1.2 2013/05/01 21:09:23 sthen Exp $
--- pub/getopt.c.orig	Tue Apr 10 04:20:40 2012
+++ pub/getopt.c	Fri Apr 13 17:58:20 2012
@@ -62,6 +62,11 @@ Cambridge, MA 02139, USA.  */
 
 char *getenv(const char *name);
 
+#ifdef __OpenBSD__
+#include <string.h>
+#include <unistd.h>
+#endif
+
 /* This version of `getopt' appears to the caller like standard Unix `getopt'
    but it behaves differently for the user, since it allows the user
    to intersperse the options with the other arguments.
